package dnl.jexem.watchdog.restarts;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

@Entity(name = "RestartInfo")
@Table(name = "RestartInfo")
public class RestartInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@TableGenerator(name = "ID_GEN", table = "ID_GEN", pkColumnName = "GEN_KEY", valueColumnName = "GEN_VALUE", pkColumnValue = "ID", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "ID_GEN")
	protected Integer id;

	@Column
	private Date time;
	
	@Column(name="origin")
	private String originLifeSign;

	@Column(name="process_name")
	private String processName;

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getOriginLifeSign() {
		return originLifeSign;
	}

	public void setOriginLifeSign(String originLifeSign) {
		this.originLifeSign = originLifeSign;
	}

	public String getProcessName() {
		return processName;
	}

	public void setProcessName(String processName) {
		this.processName = processName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

}
